package com.smartcommunity.entity.village;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @ClassName: RealPeopleLabel
 * @Description: 人员标签关系
 * @author: minsheng
 * @Date: 2019/1/3 11:44
 * @Company:
 * @version V1.5.0
 */
@Data
public class RealPeopleLabel implements Serializable {
    private static final long serialVersionUID = -1L;
    
    private Integer id;
    /**
     *身份证
     */
    private String idcardNo;
    /**
     *标签
     */
    private String label;

    private Integer labelId;
    /**
     *记录入库时间(新增或更新)(东八区)
     */
    private Date mrowTime;
    /**
     *数量，以标签分类统计
     */
    private Integer count;


    @Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (!(o instanceof RealPeopleLabel)) { return false; }
        RealPeopleLabel that = (RealPeopleLabel) o;
        return Objects.equals(idcardNo, that.idcardNo) &&
                Objects.equals(label, that.label);
    }

    @Override
    public int hashCode() {
        return Objects.hash(idcardNo, label);
    }
}
